package model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "TheLoai")
public class TheLoai implements Serializable {
	private int id_TheLoai;
	private String tenTheLoai;
	private String moTaTheLoai;

	public TheLoai(int id_TheLoai, String tenTheLoai, String moTaTheLoai) {
		super();
		this.id_TheLoai = id_TheLoai;
		this.tenTheLoai = tenTheLoai;
		this.moTaTheLoai = moTaTheLoai;
	}

	public TheLoai(String tenTheLoai) {
		super();
		this.tenTheLoai = tenTheLoai;
	}

	public TheLoai(int id_TheLoai) {
		this.id_TheLoai = id_TheLoai;
	}

	public TheLoai() {

	}

	@Id
	@GeneratedValue(generator = "TheLoai_ID_Gen", strategy = GenerationType.IDENTITY)
	@SequenceGenerator(name = "TheLoai_ID_Gen", sequenceName = "TheLoai_SEQ_ID")
	@Column(name = "ID_TheLoai", unique = true, nullable = false)
	public int getId_TheLoai() {
		return id_TheLoai;
	}

	public void setId_TheLoai(int id_TheLoai) {
		this.id_TheLoai = id_TheLoai;
	}

	@Column(name = "TenTheLoai", nullable = false)
	public String getTenTheLoai() {
		return tenTheLoai;
	}

	public void setTenTheLoai(String tenTheLoai) {
		this.tenTheLoai = tenTheLoai;
	}

	@Column(name = "MoTaTheLoai")
	public String getMoTaTheLoai() {
		return moTaTheLoai;
	}

	public void setMoTaTheLoai(String moTaTheLoai) {
		this.moTaTheLoai = moTaTheLoai;
	}

}
